
package pr.types;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for PurchaseRequisitionType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="PurchaseRequisitionType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="PurchaseRequisitionHeader" type="{http://xmlns.speridian.internal/EnterpriseObject/OM/ITPurchaseReceiptNote}PurchaseRequisitionHeaderType"/>
 *         &lt;element name="ItemDetails" type="{http://xmlns.speridian.internal/EnterpriseObject/OM/ITPurchaseReceiptNote}ItemDetailsType" minOccurs="0"/>
 *         &lt;element name="createdDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="createdBy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PurchaseRequisitionType", propOrder = {
    "purchaseRequisitionHeader",
    "itemDetails",
    "createdDate",
    "createdBy"
})
public class PurchaseRequisitionType {

    @XmlElement(name = "PurchaseRequisitionHeader", required = true)
    protected PurchaseRequisitionHeaderType purchaseRequisitionHeader;
    @XmlElement(name = "ItemDetails")
    protected ItemDetailsType itemDetails;
    @XmlElementRef(name = "createdDate", namespace = "http://xmlns.speridian.internal/EnterpriseObject/OM/ITPurchaseReceiptNote", type = JAXBElement.class)
    protected JAXBElement<XMLGregorianCalendar> createdDate;
    protected String createdBy;

    /**
     * Gets the value of the purchaseRequisitionHeader property.
     * 
     * @return
     *     possible object is
     *     {@link PurchaseRequisitionHeaderType }
     *     
     */
    public PurchaseRequisitionHeaderType getPurchaseRequisitionHeader() {
        return purchaseRequisitionHeader;
    }

    /**
     * Sets the value of the purchaseRequisitionHeader property.
     * 
     * @param value
     *     allowed object is
     *     {@link PurchaseRequisitionHeaderType }
     *     
     */
    public void setPurchaseRequisitionHeader(PurchaseRequisitionHeaderType value) {
        this.purchaseRequisitionHeader = value;
    }

    /**
     * Gets the value of the itemDetails property.
     * 
     * @return
     *     possible object is
     *     {@link ItemDetailsType }
     *     
     */
    public ItemDetailsType getItemDetails() {
        return itemDetails;
    }

    /**
     * Sets the value of the itemDetails property.
     * 
     * @param value
     *     allowed object is
     *     {@link ItemDetailsType }
     *     
     */
    public void setItemDetails(ItemDetailsType value) {
        this.itemDetails = value;
    }

    /**
     * Gets the value of the createdDate property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *     
     */
    public JAXBElement<XMLGregorianCalendar> getCreatedDate() {
        return createdDate;
    }

    /**
     * Sets the value of the createdDate property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
     *     
     */
    public void setCreatedDate(JAXBElement<XMLGregorianCalendar> value) {
        this.createdDate = ((JAXBElement<XMLGregorianCalendar> ) value);
    }

    /**
     * Gets the value of the createdBy property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCreatedBy() {
        return createdBy;
    }

    /**
     * Sets the value of the createdBy property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCreatedBy(String value) {
        this.createdBy = value;
    }

}
